package com.anng.hosp.repository;

import com.anng.hosp.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

<<<<<<< HEAD
import java.util.Date;
import java.util.List;

=======
>>>>>>> e2606adf7a07ae4b7378a6e755df44c7dfd149bd
/**
 * @author Morgan
 * @create 2021-12-26-12:25
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {


    /**
     * 根据医院编号hoscode和科室编号depcode 查询具体的schedule
     * @param hoscode
     * @param hosScheduleId
     * @return 返回Schedule类
     */
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);
<<<<<<< HEAD

    //根据参数查询mongodb
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
=======
>>>>>>> e2606adf7a07ae4b7378a6e755df44c7dfd149bd
}
